<template>
    <div>
        <h3> old : {{ cont }} </h3>
        <button @click="hand">点点我</button>
    </div>
</template>

<script lang="ts">
import { defineComponent,ref } from "vue";

export default defineComponent({
    name: "Hand",
});
</script>

<script setup lang="ts">
    var cont = ref(0)
    const hand = ()=>{
        cont.value += 1  
    }
</script>

<style  scoped >
    
</style>